$("#clubBtn").click(function() {
	var clubName = $.trim($('#clubName').val());
	var clubAbout = $.trim($('#clubAbout').val());
	if (clubName == "" || clubAbout == "") {
		$('#error').text('信息不能为空').show();
		return;
	} else {
		$.ajax({
			url : localhost + "club/regClub",
			dataType : "jsonp",
			data : {
				clubAbout : clubAbout,
				clubName : clubName
			},
			jsonp : "jsonpCallback",
			success : function(data) {
				if (data <= 0) {
					$("#error").html("*注册失败*");
				} else{
					$("#error").html("*注册成功*");
					window.location.href = "boss.shtml";
				}
			}
		});
	}
});